{% load key_tags %}

{% if CAPE.payloads %}
    {% if settings.ZIPPED_DOWNLOAD_ALL and tab_name in 'dropped,procdump,CAPE' %}
        <center><a href="{% url 'file' tab_name|add:'zipall' id '1' %}" class="btn btn-secondary btn-sm" data-bs-toggle="tooltip" title="Download password-protected file archive with all files"><span class="fas fa-file-archive"></span> <span class="fas fa-download"></span> Download All Files</a></center>
        </br>
    {% endif %}

    {% for file in CAPE.payloads|dictsortreversed:"size" %}
        {% include "analysis/generic/_file_info.html" %}
    {% endfor %}
{% else %}
    <div class="alert alert-secondary"><b>Sorry!</b> No CAPE files.</div>
{% endif %}
